import static org.junit.Assert.*;

import org.junit.Assert;
import org.junit.Test;


public class TestFatalErrorException {

	@Test
	public void testConstructorA() throws Exception
	{
				
		FatalErrorException ex = new FatalErrorException ("Constructor Test", "DVD System - Backend 2", 9);
	
		//check path 
		assertEquals("DVD System - Backend 2", ex.getPath());
		//check line number
		assertEquals(9, ex.getLine());
		//check msg
		assertEquals("Constructor Test", ex.getMessage());
	}
	
	@Test
	public void testConstructorB() throws Exception
	{
				
		FatalErrorException ex = new FatalErrorException ("Constructor Test", new Exception(), "DVD System - Backend 2", 9);
	
		//check path
		assertEquals("DVD System - Backend 2", ex.getPath());
		//check line number
		assertEquals(9, ex.getLine());
		//check msg
		assertEquals("Constructor Test", ex.getMessage());
		//test "new exception" ?
		
	}
}
